﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Directora.Master" AutoEventWireup="true" CodeBehind="BuscarPrograma.aspx.cs" Inherits="Interfaces.Programa.BuscarPrograma" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 61px;
        }
        .style2
        {
            width: 639px;
        }
        .style3
        {
            width: 294px;
            text-align: right;
        }
        .style4
        {
            width: 244px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        </asp:ScriptManagerProxy>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <asp:Panel ID="Panel1" runat="server" GroupingText="Buscar Programa" 
                        style="text-align: left">
                        <table style="width:100%;">
                            <tr>
                                <td class="style3">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Area:</td>
                                <td class="style4">
                                    <asp:DropDownList ID="DropDownList1" runat="server" 
                                        DataSourceID="SqlDataSource1" DataTextField="Area" DataValueField="Area">
                                        <asp:ListItem>Todos los programas</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:CheckBox ID="CheckBox1" runat="server" Text="Todos los programas" />
                    <br />
                                    <asp:Label ID="errorlbl" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                                <tr>
                                    <td class="style3">
                                        &nbsp;</td>
                                    <td class="style4">
                                        <asp:TextBox ID="TextBox1" runat="server" Height="21px" MaxLength="50" 
                                            Width="220px"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                                            Text="Buscar Programa" CssClass=JCIstyle />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        &nbsp;</td>
                                    <td class="style4">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </tr>
                        </table>
                    
            <br />
                        <table style="width:100%;">
                            <tr>
                                <td class="style1">
                                    &nbsp;</td>
                                <td class="style2">
                                    <asp:DataList ID="DataList1" runat="server" style="margin-left: 27px" 
                                        Width="698px" onitemcommand="DataList1_ItemCommand">
                                        <HeaderTemplate>
                                            <tr style="color: #000000">
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    Nombre
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    Area
                                                </td>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr style="color: #000000">
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="nameLbl" runat="server" Text='<%#Eval("Nombre") %>'></asp:Label>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="gestionLbl" runat="server" Text='<%#Eval("Area") %>'></asp:Label>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="LinkButton1" runat="server" 
                                                        CommandArgument='<%#Eval("CodigoPrograma") %>' onclick="LinkButton1_Click">Ver</asp:LinkButton>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="LinkButton3" runat="server" 
                                                        CommandArgument='<%#Eval("CodigoPrograma") %>' onclick="LinkButton3_Click" 
                                                        Visible='<%#(bool)Eval("Visible") && (bool)Eval("Estado") %>'>Modificar</asp:LinkButton>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="LinkButton2" runat="server" 
                                                        CommandArgument='<%#Eval("CodigoPrograma") %>' 
                                                        Visible='<%#(bool)Eval("Visible") && (bool)Eval("Estado") %>'>Cerrar</asp:LinkButton>
                                                    <ajaxToolkit:ConfirmButtonExtender ID="LinkButton2_ConfirmButtonExtender" 
                                                        runat="server" ConfirmText="Seguro que desea cerrar este programa?" 
                                                        Enabled="true" TargetControlID="LinkButton2">
                                                    </ajaxToolkit:ConfirmButtonExtender>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                        </tr>
                        </table>
                        <p>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                ConnectionString="Data Source=JCIDatabase.db.10200093.hostedresource.com; Initial Catalog=JCIDatabase; User ID=JCIDatabase; Password='ucbJCI2012!'" 
                                SelectCommand="SELECT [Area] FROM [Area]"></asp:SqlDataSource>
                        </p>
                        <p>
                            &nbsp;</p>
                        <p>
                            &nbsp;</p>
                    </asp:Panel>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <asp:Panel ID="Panel2" runat="server" GroupingText="Buscar Programa" 
                        style="text-align: left">
                        <table style="width:100%;">
                            <tr>
                                <td class="style3">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Area:</td>
                                <td class="style4">
                                    <asp:DropDownList ID="DropDownList2" runat="server" 
                                        DataSourceID="SqlDataSource1" DataTextField="Area" DataValueField="Area">
                                        <asp:ListItem>Todos los programas</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:CheckBox ID="CheckBox2" runat="server" Text="Todos los programas" />
                    <br />
                                    <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                                <tr>
                                    <td class="style3">
                                        &nbsp;</td>
                                    <td class="style4">
                                        <asp:TextBox ID="TextBox2" runat="server" Height="21px" MaxLength="50" 
                                            Width="220px"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                                            Text="Buscar Programa" CssClass=JCIstyle />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        &nbsp;</td>
                                    <td class="style4">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </tr>
                        </table>
                    
            <br />
                        <table style="width:100%;">
                            <tr>
                                <td class="style1">
                                    &nbsp;</td>
                                <td class="style2">
                                    <asp:DataList ID="DataList2" runat="server" style="margin-left: 27px" 
                                        Width="698px">
                                        <HeaderTemplate>
                                            <tr style="color: #000000">
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    Nombre
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    Area
                                                </td>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr style="color: #000000">
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="nameLbl2" runat="server" Text='<%#Eval("Nombre") %>'></asp:Label>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="gestionLbl2" runat="server" Text='<%#Eval("Area") %>'></asp:Label>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="LinkButton4" runat="server" 
                                                        CommandArgument='<%#Eval("CodigoPrograma") %>' onclick="LinkButton4_Click">Seleccionar</asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View ID="View3" runat="server">
                <asp:Panel ID="Panel3" runat="server" GroupingText="Buscar Programa" 
                        style="text-align: left">
                    <table style="width:100%;">
                        <tr>
                            <td class="style3">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Area:</td>
                            <td class="style4">
                                <asp:DropDownList ID="DropDownList3" runat="server" 
                                    DataSourceID="SqlDataSource1" DataTextField="Area" DataValueField="Area">
                                    <asp:ListItem>Todos los programas</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox3" runat="server" Text="Todos los programas" />
                                <br />
                                <asp:Label ID="errorlbl0" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <tr>
                                <td class="style3">
                                    &nbsp;</td>
                                <td class="style4">
                                    <asp:TextBox ID="TextBox3" runat="server" Height="21px" MaxLength="50" 
                                        Width="220px"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="Button3" runat="server" onclick="Button3_Click" 
                                        Text="Buscar Programa" CssClass=JCIstyle />
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    &nbsp;</td>
                                <td class="style4">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </tr>
                    </table>
                    <table style="width:100%;">
                        <tr>
                            <td class="style1">
                                &nbsp;</td>
                            <td class="style2">
                                <asp:DataList ID="DataList3" runat="server" style="margin-left: 27px" 
                                    Width="698px">
                                    <HeaderTemplate>
                                        <tr style="color: #000000">
                                            <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                Nombre
                                            </td>
                                            <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                Area
                                            </td>
                                        </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr style="color: #000000">
                                            <td style="border:2px solid #123456;">
                                                <asp:Label ID="nameLbl3" runat="server" Text='<%#Eval("Nombre") %>'></asp:Label>
                                            </td>
                                            <td style="border:2px solid #123456;">
                                                <asp:Label ID="gestionLbl3" runat="server" Text='<%#Eval("Area") %>'></asp:Label>
                                            </td>
                                            <td style="border:2px solid #123456;">
                                                <asp:LinkButton ID="CrearBtn" runat="server" 
                                                    CommandArgument='<%#Eval("CodigoPrograma") %>' onclick="CrearBtn_Click" Visible='<%#(bool)Eval("Visible")&& !(bool)Eval("Evaluado") && !(bool)Eval("Estado") %>' >Crear Evaluacion</asp:LinkButton>
                                            </td>
                                            <td style="border:2px solid #123456;">
                                                <asp:LinkButton ID="ModificarBtn" runat="server" 
                                                    CommandArgument='<%#Eval("CodigoPrograma") %>' 
                                                    onclick="ModificarBtn_Click" Visible='<%#(bool)Eval("Visible")&& (bool)Eval("Evaluado") %>'>Modificar Evaluacion</asp:LinkButton>
                                            </td>
                                            <td style="border:2px solid #123456;">
                                                <asp:LinkButton ID="VerEvaluacionBtn" runat="server" 
                                                    CommandArgument='<%#Eval("CodigoPrograma") %>' onclick="VerEvaluacionBtn_Click"  
                                                     Visible='<%#(bool)Eval("Evaluado") %>'>Ver Evaluacion</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <br />
                    </asp:Panel>
                </asp:View>
                <asp:View ID="View4" runat="server">
                    <asp:Panel ID="Panel4" runat="server" GroupingText="Buscar Programa" 
                        style="text-align: left">
                        <table style="width:100%;">
                            <tr>
                                <td class="style3">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Area:</td>
                                <td class="style4">
                                    <asp:DropDownList ID="DropDownList4" runat="server" 
                                        DataSourceID="SqlDataSource1" DataTextField="Area" DataValueField="Area">
                                        <asp:ListItem>Todos los programas</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:CheckBox ID="CheckBox4" runat="server" Text="Todos los programas" />
                                    <br />
                                    <asp:Label ID="Label2" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                                <tr>
                                    <td class="style3">
                                        &nbsp;</td>
                                    <td class="style4">
                                        <asp:TextBox ID="TextBox4" runat="server" Height="21px" MaxLength="50" 
                                            Width="220px"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="Button4" runat="server" onclick="Button4_Click" 
                                            Text="Buscar Programa" CssClass="JCIstyle"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        &nbsp;</td>
                                    <td class="style4">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </tr>
                        </table>
                        <br />
                        <table style="width:100%;">
                            <tr>
                                <td class="style1">
                                    &nbsp;</td>
                                <td class="style2">
                                    <asp:DataList ID="DataList4" runat="server" style="margin-left: 27px" 
                                        Width="698px">
                                        <HeaderTemplate>
                                            <tr style="color: #000000">
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    Nombre
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    Area
                                                </td>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr style="color: #000000">
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="nameLbl4" runat="server" Text='<%#Eval("Nombre") %>'></asp:Label>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="gestionLbl4" runat="server" Text='<%#Eval("Area") %>'></asp:Label>
                                                </td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="LinkButton5" runat="server" 
                                                        CommandArgument='<%#Eval("CodigoPrograma") %>' onclick="LinkButton5_Click">Seleccionar</asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
            </asp:MultiView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
       
</asp:Content>
